package com.ms.p2p.service.impl;


import com.ms.p2p.bean.PageBean;
import com.ms.p2p.dao.AdminLogDao;
import com.ms.p2p.entity.system.AdminLog;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;


import java.util.List;

/**
 * Created by siren on 2017/5/28.
 */
@Service
public class AdminLogServiceImpl {
    @Autowired
    AdminLogDao loginLogDao;

    public  void insert(AdminLog loginLog){
        loginLogDao.insert(loginLog);
    }


    public List<AdminLog> findPager(String type, String begin_date, String end_date, PageBean page) {
        return loginLogDao.findPager(type,begin_date,end_date,page.getBegin(),page.getPageSize());

    }

    public int findCount(String type, String begin_date, String end_date) {
        return loginLogDao.findCount(type,begin_date,end_date);

    }
}
